from camel.embeddings import MistralEmbedding
from camel.types import EmbeddingModelType

# 初始化 Mistral 嵌入模型
mistral_embedding = MistralEmbedding(
    model_type=EmbeddingModelType.MISTRAL_EMBED,
    api_key='ZkFZ1NqiAHtdTTcPp24RlNvjNeXjJlBE'
    )

# 为一组文本生成嵌入向量
embeddings = mistral_embedding.embed_list(["Hello, world!", "Another example"])
